package com.linkhub.oms.dao.mpservice;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkhub.oms.entity.UserEntity;

import java.util.Collection;
import java.util.List;
import java.util.function.UnaryOperator;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author echo
 * @since 2024-03-05
 */
public interface IUserService extends IService<UserEntity> {

    UserEntity getUserWithWrapper(UnaryOperator<LambdaQueryChainWrapper<UserEntity>> wrapper);

    UserEntity getUserByEmail(String email);

    UserEntity getUserByUserId(String userId);

    void updatePassWordByEmail(String email, String password);

    List<UserEntity> listUserByEmails(Collection<String> emails);

    List<UserEntity> listMerchants();

    void updateByUserId(String userId, UserEntity updateEntity);

    List<UserEntity> listByUserId(List<String> userIds);

    List<UserEntity> listInWhiteListMerchants();
}
